<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<%
	String path=request.getContextPath();
%>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>矾楼</title>
	<!-- Bootstrap core CSS -->
	<link href="<%=path%>/css/bootstrap.min.css" rel="stylesheet">

	<!-- Custom styles for this template -->
	<link href="<%=path%>/css/carousel.css" rel="stylesheet">
</head>

<body>



<div class="content-wrap">
	<div class="main">
		<div class="container-fluid">
			<div class="row">
				<div class="col-lg-8 p-r-0 title-margin-right">
					<div class="page-header">
						<div class="page-title">
							<h1>Hello,
								<span>欢迎光临</span>
							</h1>
						</div>
					</div>
				</div>

				<!-- /# column -->
			</div>

			<section id="main-content">

				<div class="row clearfix">
					<div class="col-md-12 column">
						<div class="">
							<h1>
								${name}土豪，你的账户余额为${moneny}元！
							</h1>
							<h2>
								预约情况如下：
							</h2>
							<p>
							<table class="table table-hover table-striped">
								<thead>
								<tr>
									<th>
										编号
									</th>
									<th>
										芳名
									</th>
									<th>
										VIP
									</th>
									<th>
										预订价格
									</th>
									<th>
										状态
									</th>
									<th>
										时间段
									</th>
									<th>
										操作
									</th>
								</tr>
								</thead>
								<tbody>
								<c:forEach var="booking" items="${bookings}" varStatus="i">
									<tr class="">
										<td>
												${booking.id}
										</td>
										<td>
												${booking.girlName}
										</td>
										<td>
												${empty booking.userName ? "等待你的垂青":booking.userName}
										</td>
										<td>
												${booking.bookingPrice}
										</td>
										<td>
												${booking.getBookingStatusZh()}
										</td>
										<td>
												${booking.timeFrame}
										</td>
										<td>
											<c:set var="fanpaiurl" value="${pageContext.request.contextPath}/booking/love?loveid=${booking.id}"/>
											<c:set var="qiandanurl" value="${pageContext.request.contextPath}/booking/rob?loveid=${booking.id}"/>
											<c:choose>
												<c:when test="${booking.status==0}"><a href='${fanpaiurl}'>翻牌</a></c:when>
												<c:otherwise><a href='${qiandanurl}'>抢单</a></c:otherwise>
											</c:choose>

										</td>
									</tr>
								</c:forEach>



								</tbody>
							</table>
							</p>

						</div>
					</div>
				</div>

			</section>
		</div>
	</div>
</div>



<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="<%=path%>/js/jquery-1.11.3.min.js"></script>

<script src="<%=path%>/js/bootstrap.min.js"></script>
</body>

</html>










